﻿@model CMS.Web.Engine.WidgetModelHtml
           
@using (Html.BeginForm())
{
    foreach (var error in Model.Errors)
    {
        <div style="color: Red;">@error.Message</div>
    }
    @Html.TextBoxFor(model => model.X, new { style = "width: 30px; margin: 5px;" }) <text>x</text> @Html.TextBoxFor(model => model.Y, new { style = "width: 30px; margin: 5px;" }) <text>=</text> @Model.Z      
    <input type="hidden" name="widget" value="@Model.Widget" />
    <input type="submit" name="Calculate" value="Calculate" /> 
}